package com.jjm.entidades;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.jjm.utils.Utils;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Idioma {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String key;
	
	@Persistent
	private String nombre;

	@Persistent
	private String id;
	
	@Persistent
	private int conversacionlevel;
	
	@Persistent
	private int lecturalevel;
	
	@Persistent
	private int escrituralevel;

    
    @Persistent
	private Curriculum cv;


    private String conversacionleveltext;
    private String lecturaleveltext;
    private String escrituraleveltext;
    
	public String getKey() {
		return key;
	}


	public void setKey(String key) {
		this.key = key;
	}


	public String getNombre() {
		return nombre;
	}


	public void setNombre(String nombre) {
		this.nombre = nombre;
	}


	public int getConversacionlevel() {
		return conversacionlevel;
	}


	public void setConversacionlevel(int conversacionlevel) {
		this.conversacionlevel = conversacionlevel;
	}


	public int getLecturalevel() {
		return lecturalevel;
	}


	public void setLecturalevel(int lecturalevel) {
		this.lecturalevel = lecturalevel;
	}


	public int getEscrituralevel() {
		return escrituralevel;
	}


	public void setEscrituralevel(int escrituralevel) {
		this.escrituralevel = escrituralevel;
	}


	public Curriculum getCv() {
		return cv;
	}


	public void setCv(Curriculum cv) {
		this.cv = cv;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getId() {
		return id;
	}


	public void setConversacionleveltext(String conversacionleveltext) {
		this.conversacionleveltext = conversacionleveltext;
	}
 

	public String getConversacionleveltext() {
		return Utils.niveles[this.conversacionlevel];
	}


	public void setLecturaleveltext(String lecturaleveltext) {
		this.lecturaleveltext = lecturaleveltext;
	}


	public String getLecturaleveltext() {
		return Utils.niveles[this.lecturalevel];
	}


	public void setEscrituraleveltext(String escrituraleveltext) {
		this.escrituraleveltext = escrituraleveltext;
	}


	public String getEscrituraleveltext() {
		return Utils.niveles[this.escrituralevel];
	}

}
